import request from 'utils/request'

/** ******
 * 一客一价api
 */

// 获取商品分类列表
export function GetProductTypeTree(data) {
  return request({
    url: '/Product/GetProductTypeTree',
    method: 'post',
    data: data
  })
}

// 获取商品列表
export function GetWholeSaleListForSku(data) {
  return request({
    url: '/Product/GetWholeSaleListForSku',
    method: 'post',
    data: data
  })
}

// 获取商品详情接口
export function GetInintProductDetailInfo(data) {
  return request({
    url: '/Product/GetInintProductDetailInfo',
    method: 'post',
    data: data
  })
}

// 获取商品详情评论
export function GetCommentListByProduct(data) {
  return request({
    url: '/Product/GetCommentListByProduct',
    method: 'post',
    data: data
  })
}

// 添加浏览次数
export function AddVisiCounts(data) {
  return request({
    url: '/Product/AddVisiCounts',
    method: 'post',
    data: data
  })
}

// 获取单个商品规格
export function GetProductInfoWithSku(data) {
  return request({
    url: '/Product/GetProductInfoWithSku',
    method: 'post',
    data: data
  })
}

// 获取购物车列表
export function GetUserCarList(data) {
  return request({
    url: '/Member/GetUserCarList',
    method: 'post',
    data: data
  })
}
// 批量删除购物车商品
export function DeleteUserCar(params) {
  return request({
    url: '/Member/DeleteUserCar',
    method: 'post',
    params
  })
}

// 添加或更新购物车
export function AddOrUpdateAmount(data) {
  return request({
    url: '/Member/AddOrUpdateAmount',
    method: 'post',
    data
  })
}
// 添加或更新临时购物车
export function AddOrEditUserCarList(data) {
  return request({
    url: '/Member/AddOrEditUserCarList',
    method: 'post',
    data
  })
}
// 收藏、取消收藏商品
export function AddProductToFavorite(data) {
  return request({
    url: '/Member/AddProductToFavorite',
    method: 'post',
    data
  })
}

// 获取要结算的订单信息
export function GetSubmitOrderData(data) {
  return request({
    url: '/Member/GetSubmitOrderData',
    method: 'post',
    data: data
  })
}

// 计算的运费--立即购买
export function StatisPostageMoneyByPayProductTemp(data) {
  return request({
    url: '/Member/StatisPostageMoneyByPayProductTemp',
    method: 'post',
    data: data
  })
}

// 加入购物车
export function SubmitFromCar(data) {
  return request({
    url: '/Order/SubmitFromCar',
    method: 'post',
    data: data
  })
}

// 获取结算的订单页面
export function GetProductDataBySubmit(data) {
  return request({
    url: '/Order/GetProductDataBySubmit',
    method: 'post',
    data: data
  })
}

// 获取标签列表
export function GetTagList() {
  return request({
    url: '/Product/GetTagList',
    method: 'post'
  })
}

// 获取品牌列表
export function ProductBrandList() {
  return request({
    url: '/Product/ProductBrandList',
    method: 'post'
  })
}

// 获取商品列表
export function GetProductPageList(params) {
  return request({
    url: '/Product/GetProductPageList',
    method: 'get',
    params: params
  })
}

// 获取商品详情
export function GetProductInfo(params) {
  return request({
    url: '/Product/GetProductInfo',
    method: 'get',
    params: params
  })
}
//获取供应商门店商品分类
export function GetSupplierStoreCategory(data) {
  return request({
    url: '/Product/GetSupplierStoreCategory',
    method: 'post',
    data: data
  })
}
//获取供应商门店商品
export function GetSupplierStoreProductPage(data) {
  return request({
    url: '/Product/GetSupplierStoreProductPage',
    method: 'post',
    data: data
  })
}
export function GetStoreProductPage(data) {
  return request({
    url: '/Product/GetStoreProductPage',
    method: 'post',
    data: data
  })
}
export function GetStoreCategory(data) {
  return request({
    url: '/Product/GetStoreCategory',
    method: 'post',
    data: data
  })
}
export function GetSupplierStoreProductLine(path) {
  return request({
    url: '/Product/GetSupplierStoreProductLine'+path,
    method: 'post',
  })
}
export function SaveSupplierStoreProduct(path,data) {
  return request({
    url: '/Product/SaveSupplierStoreProduct'+path,
    method: 'post',
    data:data
  })
}
export function UpdateProductSaleStatus(path) {
  return request({
    url: '/Product/UpdateProductSaleStatus'+path,
    method: 'post'
  })
}
export function GetProductAllInfo(path) {
  return request({
    url: '/Product/GetProductAllInfo'+path,
    method: 'post'
  })
}
export function GetSupplierStoreProductPageByAdmin(data) {
  return request({
    url: '/Product/GetSupplierStoreProductPageByAdmin',
    method: 'post',
    data:data
  })
}
// 获取商品详情接口
export function GetAppProductSimpleInfo(data) {
  return request({
    url: '/Product/GetAppProductSimpleInfo',
    method: 'post',
    data: data
  })
}
//分享商品
export function GetProductShareImage(data) {
  return request({
    url: '/Visual/GetProductShareImage',
    method: 'post',
    data: data
  })
}
//获取库存调拨配置
export function GetStockTransferSetting(params) {
  return request({
    url: '/Product/GetStockTransferSetting',
    method: 'get',
    params
  })
}
//获取库存调拨申请信息(详情)
export function GetStockTransferApplyDetail(params) {
  return request({
    url: '/Product/GetStockTransferApplyDetail',
    method: 'get',
		params
  })
}
//获取库存调拨申请分页列表(调拨列表)
export function GetStockTransferApplyPage(data) {
  return request({
    url: '/Product/GetStockTransferApplyPage',
    method: 'post',
    data: data
  })
}
//提交库存调拨申请
export function SubmitStockTransferApply(data) {
  return request({
    url: '/Product/SubmitStockTransferApply',
    method: 'post',
    data: data
  })
}
//处理库存调拨申请
export function CheckStockTransferApply(data) {
  return request({
    url: '/Product/CheckStockTransferApply',
    method: 'post',
    data: data
  })
}
export function GetUserSendStore(data) {
  return request({
    url: '/Member/GetUserSendStore',
    method: 'post',
		data: data
  })
}
export function GetIsStore(data) {
  return request({
    url: '/Member/GetIsStore',
    method: 'post',
		data: data
  })
}
export function GetStoreSkuStockPage(data) {
  return request({
    url: '/Product/GetStoreSkuStockPage',
    method: 'post',
		data: data
  })
}
export function AddStoreSkuStock(data) {
  return request({
    url: '/Product/AddStoreSkuStock',
    method: 'post',
		data: data
  })
}
export function GetStoreSku(params) {
  return request({
    url: '/Product/GetStoreSku',
    method: 'post',
		params
  })
}
export function GetProductLine(params) {
  return request({
    url: '/Product/GetProductLine',
    method: 'post',
		params
  })
}

export function SaveUserProductByEmployee(data) {
  return request({
    url: '/Product/SaveUserProductByEmployee',
    method: 'post',
    data: data
  })
}
export function GetUserPriceListByEmployee(data) {
  return request({
    url: '/Product/GetUserPriceListByEmployee',
    method: 'post',
    data: data
  })
}


